<?php
/*
 * Copyright 2013 by Jerrick Hoang, Ivy Xing, Sam Roberts, James Cook, 
 * Johnny Coster, Judy Yang, Jackson Moniaga, Oliver Radwan, 
 * Maxwell Palmer, Nolan McNair, Taylor Talmage, and Allen Tucker. 
 * This program is part of RMH Homebase, which is free software.  It comes with 
 * absolutely no warranty. You can redistribute and/or modify it under the terms 
 * of the GNU General Public License as published by the Free Software Foundation
 * (see <http://www.gnu.org/licenses/ for more information).
 * 
 */

/**
 * Test suite for Clinician
 * Created on 3/19/2014
 * @author 
 */



  //first I include the php file I'm testing
 include_once(dirname(__FILE__) . '/../domain/Clinician.php');
 include_once ('Clinician.php');
 include_once('checkRoutines.inc');

 
define("NPI","4555454545");
define("ID","Gabrielle".NPI);
define("FIRST NAME", "Gabrielle");
define("LAST NAME", "DeSanchez");
define("SPECIALITY", "Dental");
define("PHONE", "2333334545");
define("CELL", "3444445656");
define("SSN","444-44-4444");
define("AVAILABILITY", "Mon-Fri 9-5");
 testClinicianModule();
 
 function testClinicianModule() {
          echo 'Testing Clinician';
 $myPerson = new Clinician("19216811","Senor","Pepper","Senor Pepper", "General Practicioner",
         "631-555-0100","516-555-0100","123-45-6789","1","21","1000");

 //first assertion - check that a getter is working from the superconstructor's initialized data
 $myPerson2 = retrieve_clinician;
 
 checkEquals($myPerson2[0]->get_fname(), "Senor");
 echo 'Testing Clinician';
 $this->assertTrue($myPerson->get_id()===("19216811"));
 $this->assertTrue($myPerson->get_fname()===("Senor"));
 $this->assertTrue($myPerson->get_lname()===("Pepper"));
 $this->assertTrue($myPerson->get_fullname()===("Senor Pepper"));
 $this->assertTrue($myPerson->get_specialty()===("General Practicioner"));
 $this->assertTrue($myPerson->get_phoneNum()===("631-555-0100"));
 $this->assertTrue($myPerson->get_cellNum()=== ("516-555-0100"));
 $this->assertTrue($myPerson->get_SSN()===("123-45-6789"));
 $this->assertTrue($myPerson->get_availability()===("1"));
 $this->assertTrue($myPerson->get_age()===("21"));
 $this->assertTrue($myPerson->get_npi()===("1000"));
 echo("testClinician complete");
  
  
      }
 
?>